How to close jframe on click of button

109

How to close jframe on click of button -

button.addActionListener(e -> {
   frame.dispose();
});

Comments

Submit
0 Comments